package com.framework.SystemPage
{
	import com.framework.BasicButton;
	import com.framework.BasicPage;
	import com.framework.ButtonInfo;
	import com.framework.CustomEventButton;
	import com.framework.*;
	
	import flash.events.Event;
	import flash.events.MouseEvent;

	public class MainPage extends BasicPage
	{
		public var btnStageMode:BasicButton;
		public var btnSurviveMode:BasicButton;
		public var btnHelp:BasicButton;
		public var btnKiosk:BasicButton;
		public var btnBillboard:BasicButton;
	//	public var btnWarehouse:BasicButton;
		public var btnBack:BasicButton;
		
		public var bg:resMainBg;
		
		public function MainPage()
		{
			
			super();
			
		
		
			

		}
	
		
		override public function init(e:Event):void
		{
			super.init(e);
			bg = new resMainBg;
			//发声吧~~~~
			dispatchEvent(new CustomEventSound(CustomEventSound.PLAY_SOUND,SoundInfo.BGM_MAINMENU,true));
			
			this.addChild(bg);
			
			btnStageMode =	 addButton(ButtonInfo.BUTTON_ANIMATION,	0,121,120);
			btnStageMode.addChild(new resStory);
			
			btnSurviveMode = addButton(ButtonInfo.BUTTON_SURVIVE_MODE,	1,54,153);
			btnSurviveMode.addChild(new resChanllenge);
			
			btnKiosk = addButton(ButtonInfo.BUTTON_KIOSK,				2,125,193);
			btnKiosk.addChild(new resKiosk);
			
			btnHelp = addButton(ButtonInfo.BUTTON_HELP,					3,125,230);
			btnHelp.addChild(new resHelp);
			
			btnBillboard = addButton(ButtonInfo.BUTTON_BILLBOARD,		4,60,265);
			btnBillboard.addChild(new resBillboard);
			
			
		}
		
		
		override public function update(e:Event):void
		{
			
		}

	}
}